﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.PackageManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PackageManagement.PackageRecordVMs
{
    public partial class PackageRecordBatchVM : BaseBatchVM<PackageRecord, PackageRecord_BatchEdit>
    {
        public PackageRecordBatchVM()
        {
            ListVM = new PackageRecordListVM();
            LinkedVM = new PackageRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class PackageRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._PackageRecord._Package")]
        public long? PackageId { get; set; }
        [Display(Name = "_Model._PackageRecord._WoId")]
        public long? WoId { get; set; }
        [Display(Name = "_Model._PackageRecord._WoCode")]
        public string WoCode { get; set; }
        [Display(Name = "_Model._PackageRecord._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._PackageRecord._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._PackageRecord._Sn")]
        public string Sn { get; set; }
        [Display(Name = "_Model._PackageRecord._PartSn")]
        public string PartSn { get; set; }
        [Display(Name = "_Model._PackageRecord._StartTime")]
        public DateTime? StartTime { get; set; }
        [Display(Name = "_Model._PackageRecord._Remark")]
        public string Remark { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}